package com.lesales.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.lesales.dao.interfaces.IUserRoleDao;
import com.lesales.model.UserRole;
import com.lesales.service.interfaces.IUserRoleService;

@Service
public class UserRoleServiceImpl extends BaseServiceImpl<UserRole, Serializable> implements IUserRoleService {

	@Autowired
	@Qualifier("userRoleDaoImpl")
	private IUserRoleDao userRoleDao;

	@Override
	public List<UserRole> findRoleIdByUserId(int userId) {
		// TODO Auto-generated method stub
		return userRoleDao.findRoleIdByUserId(userId);
	}

}
